﻿using System;
using System.Linq.Expressions;

namespace ICount.DataAccess.Interface.Repository
{
    public interface IRepository<T> where T:class
    {
        IRepository<T> Find(Expression<Func<T, bool>> predicate);
        T FindSingle(Expression<Func<T, bool>> predicate);
        T FindById(int id);

        void Add(T entity);
        void Remove(T entity);
    }
}
